package com.swak.frame.system;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.Role;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

@Configuration(proxyBeanMethods = false)
@PropertySource(value = {"${swak.system.filePath:}"}, ignoreResourceNotFound = true)
@Order(Ordered.HIGHEST_PRECEDENCE + 999)
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
public class SystemConfigConfiguration {

	@Bean
	public SystemConfigurable systemConfig() {
		return new SystemConfigurable();
	}
}
